package com.imooc.coupon;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <h1>网关应用启动入口</h1>
 * 1.@EnableZuulProxy 标识当前的应用是 ZuulServer
 * 2.@SpringCloudApplication 组合了springboot 应用 + 服务发现 + 熔断
 * @Author: crowsjian
 * @Date: 2020/5/29 20:53
 */
@EnableZuulProxy
@EnableFeignClients  // 一定要加入，因为 permission-sdk 中 写了 Feign 接口
@SpringCloudApplication
public class ZuulGateawayApplication {
    public static void main(String[] args) {
        SpringApplication.run(ZuulGateawayApplication.class,args);
    }
}
